import { QdrantClient } from "@qdrant/js-client-rest";
import retry from '@3-/retry'

const {env} = process

const QDRANT = new QdrantClient({ 
  url: env.QDRANT_URL, 
  apiKey: env.QDRANT__SERVICE__API_KEY    
});

export default QDRANT;

export const qUpsert = retry(QDRANT.upsert.bind(QDRANT))

// console.log(await QDRANT.getCollections());
